package com.studyspace.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author liujilong
 * @Project study-space
 * @File MybatisPlusConfig
 * @Date 2021/11/26 10:37 下午
 **/
@Configuration
@MapperScan("com.studyspace.mapper")
public class MybatisPlusConfig {

    //分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
